<%--
  Created by IntelliJ IDEA.
  User: MorenYang
  Date: 2017/11/15
  Time: 18:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" import="com.morenyang.webproject.*"
         import="java.util.List" %>


<html>
<head>
    <title>Title</title>
</head>
<body>
<ul>
    <%
        Dao dao = new Dao();
        List<Item> list = dao.getItemList();
        for (Item item : list) {
            out.print("<li>" + item.getName() + " " + item.getDetail() + " " + item.getPrice() + "</li>");
        }
    %>
</ul>

</body>
</html>
